package com.randi.system.domain.dto.sysMenu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author ziye
 */
@Data
@ApiModel(value = "按钮菜单")
public class ButtonDTO {

    @ApiModelProperty(value = "菜单ID", notes = "修改时必选")
    private Long menuId;

    @ApiModelProperty(value = "上级菜单ID")
    private Long parentId;

    @NotBlank(message = "菜单名称不能为空")
    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @NotBlank(message = "权限标识不能为空")
    @ApiModelProperty(value = "权限标识")
    private String menuCode;

    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;

    @ApiModelProperty(value = "菜单状态", notes = "0：正常 1：停用")
    private Integer status;

}
